package zhoufu.sz.sanxiao_check.net;

import android.text.TextUtils;
import java.util.HashMap;
import java.util.List;

/**
 * 项目： zhoufu.sz.sanxiao_check.net
 * 时间： 2016/6/20 10:16
 * 人员： hyc
 * 功能： map的
 */

public final class MapBuilder
{
    protected final int PAGE_SIZE = 20;

    public MapBuilder Evidence(String evidence) {
        hashMap.put("Evidence", evidence);
        return this;
    }

    public MapBuilder Dangers(List<ModifyActionRepository.Dangers> dangers) {
        hashMap.put("Dangers", dangers);
        return this;
    }

    private static class MapHelperHolder
    {
        private static final MapBuilder INSTANCE = new MapBuilder();
    }

    private MapBuilder()
    {
    }

    public static MapBuilder getInstance()
    {
        return MapHelperHolder.INSTANCE;
    }

    private static HashMap<String, Object> hashMap;

    public MapBuilder setHashMap(HashMap<String, Object> map)
    {
        hashMap = map;
        return this;
    }

    public HashMap<String, Object> build()
    {
        return this.hashMap;
    }

    public MapBuilder putMid(int mid)
    {
        hashMap.put("MID", mid);
        return this;
    }

    public MapBuilder creatationHashMap()
    {
        return setHashMap(new HashMap<String, Object>());
    }

    /**
     * UserID预约人ID
     */
    public MapBuilder UserID(Object userId)
    {
        hashMap.put("UserID", userId);
        return this;
    }
    public MapBuilder OldPassword(String userId)
    {
        hashMap.put("OldPassword", userId);
        return this;
    }
    public MapBuilder NewPassword(String userId)
    {
        hashMap.put("NewPassword", userId);
        return this;
    }

    public MapBuilder Reseau(int Reseau)
    {
        hashMap.put("Reseau", Reseau);
        return this;
    }

    public MapBuilder UserName(String userId)
    {
        hashMap.put("UserName", userId);
        return this;
    }

    public MapBuilder Version(String userId)
    {
        hashMap.put("Version", userId);
        return this;
    }

    public MapBuilder IMEI(String userId)
    {
        hashMap.put("IMEI", userId);
        return this;
    }

    public MapBuilder SIDS(String SIDS)
    {
        hashMap.put("SIDS", SIDS);
        return this;
    }

    public MapBuilder Contents(String SIDS)
    {
        hashMap.put("Contents", SIDS);
        return this;
    }

    public MapBuilder AboutTime(String SIDS)
    {
        hashMap.put("AboutTime", SIDS);
        return this;
    }

    public MapBuilder Type(int SIDS)
    {
        hashMap.put("Type", SIDS);
        return this;
    }

    public MapBuilder Type(String SIDS)
    {
        hashMap.put("Type", SIDS);
        return this;
    }

    public MapBuilder Business(String SIDS)
    {
        hashMap.put("Business", SIDS);
        return this;
    }

    public MapBuilder Has_Business(String SIDS)
    {
        hashMap.put("Has_Business", SIDS);
        return this;
    }

    public MapBuilder Run_Name(String SIDS)
    {
        hashMap.put("Run_Name", SIDS);
        return this;
    }

    public MapBuilder Run_Phone(String SIDS)
    {
        hashMap.put("Run_Phone", SIDS);
        return this;
    }


    public MapBuilder Name(String SIDS)
    {
        hashMap.put("Name", SIDS);
        return this;
    }

    /**
     * 小写
     */
    public MapBuilder pageIndex(int SIDS)
    {
        hashMap.put("pageIndex", SIDS);
        return this;
    }

    /**
     * 大写
     */
    public MapBuilder PageIndex(int SIDS)
    {
        hashMap.put("PageIndex", SIDS);
        return this;
    }

    public MapBuilder Grade(String SIDS)
    {
        hashMap.put("Grade", SIDS);
        return this;
    }

    public MapBuilder SheQuID(String SIDS)
    {
        hashMap.put("SheQuID", SIDS);
        return this;
    }

    public MapBuilder WangGeID(String SIDS)
    {
        hashMap.put("WangGeID", SIDS);
        return this;
    }

    public MapBuilder LouDongID(String SIDS)
    {
        hashMap.put("LouDongID", SIDS);
        return this;
    }

    public MapBuilder IsCheck(int SIDS)
    {
        hashMap.put("IsCheck", SIDS);
        return this;
    }

    public MapBuilder PageSize()
    {
        hashMap.put("PageSize", PAGE_SIZE);
        return this;
    }

    public MapBuilder PageSize(int size)
    {
        hashMap.put("pageSize", size);
        return this;
    }

    public MapBuilder CID(String SIDS)
    {
        hashMap.put("CID", SIDS);
        return this;
    }


    public MapBuilder sysType(int SIDS)
    {
        hashMap.put("sysType", SIDS);
        return this;
    }

    public MapBuilder IsAbout(int SIDS)
    {
        hashMap.put("IsAbout", SIDS);
        return this;
    }

    public MapBuilder TaskID(String SIDS)
    {
        hashMap.put("TaskID", SIDS);
        return this;
    }

    public MapBuilder Status(String SIDS)
    {
        hashMap.put("Status", SIDS);
        return this;
    }

    public MapBuilder Status(int SIDS)
    {
        hashMap.put("Status", SIDS);
        return this;
    }

    public MapBuilder Imgs(String SIDS)
    {
        hashMap.put("Imgs", SIDS);
        return this;
    }

    public MapBuilder Remark(String SIDS)
    {
        hashMap.put("Remark", SIDS);
        return this;
    }

    public MapBuilder ID(String SIDS)
    {
        hashMap.put("ID", SIDS);
        return this;
    }

    public MapBuilder UserId(String SIDS)
    {
        hashMap.put("UserId", SIDS);
        return this;
    }

    public MapBuilder OrderField(String SIDS)
    {
        hashMap.put("OrderField", SIDS);
        return this;
    }

    public MapBuilder User_ID(String SIDS)
    {
        hashMap.put("User_ID", SIDS);
        return this;
    }

    public MapBuilder remark(String remark)
    {
        hashMap.put("Remark", remark);
        return this;
    }

    public MapBuilder SID(String SIDS)
    {
        hashMap.put("SID", TextUtils.isEmpty(SIDS) ? "0" : SIDS);
        return this;
    }
    public MapBuilder SID(int  SIDS)
    {
        hashMap.put("SID",  SIDS);
        return this;
    }
    public MapBuilder License(String SIDS)
    {
        hashMap.put("License", SIDS);
        return this;
    }

    public MapBuilder CardTo(String SIDS)
    {
        hashMap.put("CardTo", SIDS);
        return this;
    }

    public MapBuilder CardEnd(String SIDS)
    {
        hashMap.put("CardEnd", SIDS);
        return this;
    }

    public MapBuilder ExamineID(String SIDS)
    {
        hashMap.put("ExamineID", SIDS);
        return this;
    }

    public MapBuilder SerchType(String SIDS)
    {
        hashMap.put("SerchType", SIDS);
        return this;
    }

    public MapBuilder keyWord(String SIDS)
    {
        hashMap.put("keyWord", SIDS);
        return this;
    }

    public MapBuilder BID(String SIDS)
    {
        hashMap.put("BID", SIDS);
        return this;
    }

    public MapBuilder Img(String SIDS)
    {
        hashMap.put("Img", SIDS);
        return this;
    }

    public MapBuilder Charge_Person(String SIDS)
    {
        hashMap.put("Charge_Person", SIDS);
        return this;
    }

    public MapBuilder OrderType(String SIDS)
    {
        hashMap.put("OrderType", SIDS);
        return this;
    }

    public MapBuilder Is_Sign(String SIDS)
    {
        hashMap.put("Is_Sign", SIDS);
        return this;
    }

    public MapBuilder IsDeclare(String SIDS)
    {
        hashMap.put("IsDeclare", SIDS);
        return this;
    }

    public MapBuilder Complet_Time(String SIDS)
    {
        hashMap.put("Complete_Time", SIDS);
        return this;
    }

    public MapBuilder Safe_Person(String SIDS)
    {
        hashMap.put("Safe_Person", SIDS);
        return this;
    }

    public MapBuilder Agency(String SIDS)
    {
        hashMap.put("Agency", SIDS);
        return this;
    }

    public MapBuilder StratTime(String SIDS)
    {
        hashMap.put("StratTime", SIDS);
        return this;
    }

    public MapBuilder EndTime(String SIDS)
    {
        hashMap.put("EndTime", SIDS);
        return this;
    }

    public MapBuilder Work_Url(String SIDS)
    {
        hashMap.put("Work_Url", SIDS);
        return this;
    }

    public MapBuilder Inspection_place(String SIDS)
    {
        hashMap.put("Inspection_place", SIDS);
        return this;
    }

    public MapBuilder Remark2(String SIDS)
    {
        hashMap.put("Remark2", SIDS);
        return this;
    }

    public MapBuilder RemarkType(String SIDS)
    {
        hashMap.put("RemarkType", SIDS);
        return this;
    }

    public MapBuilder Complete_Time(String SIDS)
    {
        hashMap.put("Complete_Time", SIDS);
        return this;
    }

    public MapBuilder ItemList(String SIDS)
    {
        hashMap.put("ItemList", SIDS);
        return this;
    }

    public MapBuilder Password(String SIDS)
    {
        hashMap.put("Password", SIDS);
        return this;
    }

    public MapBuilder Password2(String SIDS)
    {
        hashMap.put("Password2", SIDS);
        return this;
    }

    public MapBuilder Contact(String SIDS)
    {
        hashMap.put("Contact", SIDS);
        return this;
    }

    public MapBuilder Mobile(String SIDS)
    {
        hashMap.put("Mobile", SIDS);
        return this;
    }

    public MapBuilder OwnerName(String SIDS)
    {
        hashMap.put("OwnerName", SIDS);
        return this;
    }

    public MapBuilder OwnerMobile(String SIDS)
    {
        hashMap.put("OwnerMobile", SIDS);
        return this;
    }

    public MapBuilder Doorplate(String SIDS)
    {
        hashMap.put("Doorplate", SIDS);
        return this;
    }

    public MapBuilder Address(String SIDS)
    {
        hashMap.put("Address", SIDS);
        return this;
    }

    public MapBuilder FloorNum(String SIDS)
    {
        hashMap.put("FloorNum", SIDS);
        return this;
    }

    public MapBuilder CardFace(String SIDS)
    {
        hashMap.put("CardFace", SIDS);
        return this;
    }

    public MapBuilder CardFan(String SIDS)
    {
        hashMap.put("CardFan", SIDS);
        return this;
    }

    public MapBuilder ReseauID(String SIDS)
    {
        hashMap.put("ReseauID", SIDS);
        return this;
    }

    public MapBuilder District_ID(String SIDS)
    {
        hashMap.put("District_ID", SIDS);
        return this;
    }

    public MapBuilder District(String SIDS)
    {
        hashMap.put("District", SIDS);
        return this;
    }

    public MapBuilder Place_No(String SIDS)
    {
        hashMap.put("Place_No", SIDS);
        return this;
    }
    public MapBuilder Longitude(double SIDS)
    {
        hashMap.put("Longitude", SIDS);
        return this;
    }
    public MapBuilder Latitude(double SIDS)
    {
        hashMap.put("Latitude", SIDS);
        return this;
    }

    public MapBuilder Building_No(String SIDS)
    {
        hashMap.put("Building_No", TextUtils.isEmpty(SIDS) || SIDS.length() < 5 ? "0" : SIDS);
        return this;
    }

    public MapBuilder PhotoType(int SIDS)
    {
        hashMap.put("PhotoType", SIDS);
        return this;
    }

    public MapBuilder RID(String SIDS)
    {
        hashMap.put("RID", SIDS);
        return this;
    }

    public MapBuilder PhotoPath(String SIDS)
    {
        hashMap.put("PhotoPath", TextUtils.isEmpty(SIDS) ? "0" : SIDS);
        return this;
    }

    public MapBuilder IsLive(int SIDS)
    {
        hashMap.put("IsLive", SIDS);
        return this;
    }

    public MapBuilder People_Num(String SIDS)
    {
        hashMap.put("People_Num", SIDS);
        return this;
    }

    public MapBuilder PhotoType(String SIDS)
    {
        hashMap.put("PhotoType", SIDS);
        return this;
    }

    public MapBuilder SignPath(String SIDS)
    {
        hashMap.put("SignPath", SIDS);
        return this;
    }

    public MapBuilder PhotoID(String SIDS)
    {
        hashMap.put("PhotoID", TextUtils.isEmpty(SIDS) ? "0" : SIDS);
        return this;
    }

    public MapBuilder Describe(String SIDS)
    {
        hashMap.put("Describe", TextUtils.isEmpty(SIDS) ? "0" : SIDS);
        return this;
    }

    public MapBuilder Title(String SIDS)
    {
        hashMap.put("Title", SIDS);
        return this;
    }

    public MapBuilder Photo(String SIDS)
    {
        hashMap.put("Photo", SIDS);
        return this;
    }
}
